document.querySelector('h1').onclick = function (){
    this.style.color = 'blue'
}